<?php
echo $this->form;
//$this->dojo()->enable();

?>


<style type="text/css">
table, td, th, tr
{
border:5px #EBDDE2;
}
th
{
background-color:#D3D3D3;
color: #696969;
font-size:100%;
}

td
{
   font-size: 90%;
   background-color: #EBDDE2
}
tr:hover{
	background-color: white;
}
</style>

<a href="<?php echo $this->url(array('module'=>'student', 'controller'=>'grade',
'action'=>'add'));?>"><u>Add a grade</u></a>

<table  width="500" align="center" >
<th >Grade</th>
<th>In Percentage</th>
<th>Maximum Possible %</th>
<th>Edit</th>
<th>Delete</th>

<?php foreach($this->grades as $grades) : ?>
<tr>
<td width="15%" align="center" >
<?php echo $grades->grade;?></td>

<td width="25%" align="center">
    <?php echo $grades->grade_in_percent;?></td>

<td width="30%" align="center">
    <?php echo $grades->max_grade_in_percent;?></td>


<td width="10%" align="center">
<a href ="<?php echo $this->url(array('module'=>'student', 'controller'=>'grade',
    'action'=>'edit', 'id'=>$grades->id));?>"  style="text-decoration:none"><u>Edit</u></a></td>

<td width="10%" align="center">
<a href ="<?php echo $this->url(array('module'=>'student', 'controller'=>'grade',
    'action'=>'delete', 'id'=>$grades->id));?>"  style="text-decoration:none"><u>X</u></a></td><br>


<?php endforeach; ?>


</table><br><br>

